package xcmg.device.dao.mapper.buyBack;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.buyBack.BuyBackDetailDO;

import java.util.List;

@Mapper
public interface BuyBackDetailMapper {
    int insert(BuyBackDetailDO record);

    List<BuyBackDetailDO> list(@Param("billId") String billId);

    BuyBackDetailDO findBymaterialNo(@Param("billId") String billId, @Param("materialsNo") String materialsNo);

    int deleteByBillId(@Param("billId") String billId);

    int update(BuyBackDetailDO record);
}